<template>
    <img v-for="(item, index) in data" :src="item.src" :key="index" class="w-[100%] h-[100px] rounded cursor-pointer mb-6" @click="$commonOpen(item)" />
</template>

<script setup>
defineProps({
    data: Array
})

// 另一种调用公共方法的方式
// const nuxtApp = useNuxtApp()
// nuxtApp.$commonOpen()
</script>
